package ch5;

public class TTest {

	public static void main(String[] args) {
		Teacher t = new Teacher();
		// 直接访问对象的属性
		// t.name = "老郭";
		// t.age = -32;

		// 间接修改属性
		t.setName("老吴");
		t.setAge(33);
		// int i = t.getAge();
		// i = 50;
		t.selfIntro();

		Teacher t2 = new Teacher("老刘", 12);
		t2.selfIntro();
		// t2.increaseAge();
		t2.happyBirthday();
		t2.selfIntro();
	}

}
